package com.example.design.a.builder;

/**
 * 宏基电脑
 */
public class AcerBuilder extends ComputerBuilder {
    @Override
    public void buildKeyBoard() {
        computer.setKeyboard(new Keyboard("魔蛋"));
    }

    @Override
    public void buildMouse() {
        computer.setMouse(new Mouse("双飞燕"));
    }

    @Override
    public void buildScreen() {
        computer.setScreen(new Screen("长城"));
    }

    @Override
    public Computer getComputer() {
        computer.setName("Acer游戏本");
        return this.computer;
    }
}
